package com.yex.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

@TableName("tb_merchant_order")
public class MerchantOrderEntity {

    /**
     * 订单id
     */
    private Integer id;
    /**
     * 商户用户id
     */
    private Integer userId;
    /**
     * 购买单价
     */
    private BigDecimal price;
    /**
     * 销售数量
     */
    private BigDecimal total;
    /**
     * 冻结数量
     */
    private BigDecimal frozen;
    /**
     * 订单类型,1:买,2:卖
     */
    private Integer orderType;
    /**
     * 订单状态,0:未完成,1:已完成
     */
    private Integer status;
    /**
     * 是否撤销,0:未撤销,1:已撤销
     */
    private Integer isCancel;
    /**
     * 订单要求,最低购买数量
     */
    private BigDecimal minSellerNumber;
    /**
     * 订单要求,最大购买双良
     */
    private BigDecimal maxSellerNumber;
    /**
     * 订单创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 绑定银行卡id
     */
    private Integer bankId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public BigDecimal getFrozen() {
        return frozen;
    }

    public void setFrozen(BigDecimal frozen) {
        this.frozen = frozen;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsCancel() {
        return isCancel;
    }

    public void setIsCancel(Integer isCancel) {
        this.isCancel = isCancel;
    }

    public BigDecimal getMinSellerNumber() {
        return minSellerNumber;
    }

    public void setMinSellerNumber(BigDecimal minSellerNumber) {
        this.minSellerNumber = minSellerNumber;
    }

    public BigDecimal getMaxSellerNumber() {
        return maxSellerNumber;
    }

    public void setMaxSellerNumber(BigDecimal maxSellerNumber) {
        this.maxSellerNumber = maxSellerNumber;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getBankId() {
        return bankId;
    }

    public void setBankId(Integer bankId) {
        this.bankId = bankId;
    }
}
